using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SMS.OnLine.Security;


/// <summary>
/// Summary description for PageBase
/// </summary>
namespace SMS.OnLine.Site
{
    public class PageBase : System.Web.UI.Page
    {
        public Passport passport;
        public PageBase():base()
        {
        }

        protected override void OnInit(EventArgs e)
        {
            if (Session["Passport"] != null)
            {
                passport = (Passport)Session["Passport"];
            }
            else
            {
                Response.Redirect("~/Login.aspx",true);
            }
            base.OnInit(e);
        }
    }
}

